
import Vue from 'vue';
import App from './App.vue';
import 'src/assets/js/vue-common'; //每个页面都引入
import JsCallback from 'src/assets/js/js-callback'; //每个页面都引入

import 'src/assets/js/ajax-util'; //有需要再引入，引入ajax-util的页面要判断window.qqlgclientwebview是否存在
if (window.qqlgclientwebview || isDebug) {
  let vm = new Vue({
    el: '#app',
    template: '<App/>',
    components: {App}
  });

  window.onload = () => {
    JsCallback.registerRefreshData(vm); //每个页面都注册
  };
} else {
  window.document.body.innerHTML = '<h3>择天惠欢迎您！</h3>';
}
